getDatail();

function getDatail() {
  var cull = location.search;
  var cull = cull.substr(1);
  console.log(cull);
  $.ajax({
    type: 'get',
    url: 'http://193.112.55.79:9090/api/getdiscountproduct',
    dataType: 'json',
    data: { productid: cull },
    success: function (res) {
      console.log(res);
      // location.href = './CNdetail.html';
      var str = template("Temp", res);
      $('.CN_main').html(str);
    }
  })
}